#ifndef MYPLUGIN_H
#define MYPLUGIN_H

#include "Plugin_global.h"
#include "BasePlugin.h"

#define MYPLUGIN_NAME         "EarthPlugin"
#define MYPLUGIN_DESCRIPTION  "EarthPlugin插件描述"
#define MYPLUGIN_TYPE         PluginType::System

class PLUGIN_EXPORT MyPlugin : public BasePlugin
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID MYPLUGIN_NAME)
    Q_INTERFACES(BasePlugin)
public:
    MyPlugin();
    virtual void OnLoad(int argc, char **argv);
    virtual void* HandleEvent(Event event, void *pData, BasePlugin *pSender);
    virtual QWidget* GetWidget();
private:
    QString loadQss(QString filepath);
    QWidget* mEarthWidget = nullptr;
};

#endif // MYPLUGIN_H
